<!--navigation start-->
<div id="navigation">
    <div class="nav">
        <ul>
            <li><a href="/#p1" class="active" id="p1"><span>个人主页</span></a></li>
            <li>|</li>
            <li><a href="/frontendAlbum#p2" id="p2"><span>记忆回廊</span></a></li>
            <li>|</li>
            <li><a href="/frontendData#p1"><span>博客中心</span></a></li>
        </ul>
    </div>
</div>
<!--navigation end-->
<script>
    $(function(){
        let id = window.location.hash;
        $('#navigation li a').removeClass('active');
        $(id).addClass('active');
    });
</script>